package com.hzqy.web.ac;

import java.util.Map;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hzqy.service.externalLink.ExternalLinkServiceBean;
import com.hzqy.web.vo.SysConfigVo;
import com.hzqy.web.vo.WlContentVo;

@Controller
@RequestMapping("/externalLink")
public class ExternalLinkAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private ExternalLinkServiceBean externalLinkServiceBean;
	
	//查询外链
	@RequestMapping("/selectWLContent")
	@ResponseBody
	public WlContentVo selectWLContent(WlContentVo wlContentVo) {
		WlContentVo wlc = externalLinkServiceBean.selectWLContent(wlContentVo);
		return wlc;
	} 
	
	//查询有效的外链
	@RequestMapping("/selectWLContentAvaliable")
	@ResponseBody
	public WlContentVo selectWLContentAvaliable(WlContentVo wlContentVo) {
		WlContentVo wlc = externalLinkServiceBean.selectWLContentAvaliable(wlContentVo);
		return wlc;
	} 
	
	
	
	
	
}
